﻿using BoldBrick.Core.Logging;
using BoldBrick.OneIntranet.HR.Resources;
using BoldBrick.SharePoint.CommonControls.Layouts;
using Microsoft.SharePoint;

namespace BoldBrick.OneIntranet.HR.Layouts
{
	public partial class Reorder : BaseDialogPage
	{
		private static readonly ILogger log = Logger.GetLogger(typeof(Reorder));

		#region ------ BaseDialogPage Members -----------------------------------------------------

		protected override string GetTitle(uint language)
		{
			return ResourceBuilder.GetResource("Reorder_Title", language);
		}

		protected override string GetDescription(uint language)
		{

			return ResourceBuilder.GetResource("Reorder_Description", language);
		}

		protected override string GetCancelButtonText(uint language)
		{
			return ResourceBuilder.GetResource("Reorder_CancelButton_Text", language);
		}

		protected override string GetOKButtonText(uint language)
		{
			return ResourceBuilder.GetResource("Reorder_OkButton_Text", language);
		}

		#endregion

		#region ------ Action Methods -------------------------------------------------------------

		protected override bool DoAction(out string errorMessage)
		{
			errorMessage = null;

			uint language = SPContext.Current.Web.Language;
			SPList list = GetList(language);

			return true;
		}

		
		#endregion
	}
}
